package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2020-02-09
 */
@TableName("t_mdpay")
public class Mdpay extends Model<Mdpay> {

    private static final long serialVersionUID = 1L;

	@TableId(value="sid", type= IdType.AUTO)
	private Long sid;
	private Long mpid;

    /**
     * 联盟id
     */
	private Long leagueid;
    /**
     * 商家返成
     */
	private BigDecimal paymch;
    /**
     * 盟主返成
     */
	private BigDecimal paymeng;
    /**
     * 分销者返成
     */
	private BigDecimal payshare;
    /**
     * 平台返成
     */
	private BigDecimal payplat;

	private Integer state;
	private Integer fangshua;

	private Date createtime;
	private Date modifytime;

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Long getLeagueid() {
		return leagueid;
	}

	public void setLeagueid(Long leagueid) {
		this.leagueid = leagueid;
	}

	public BigDecimal getPaymch() {
		return paymch;
	}

	public void setPaymch(BigDecimal paymch) {
		this.paymch = paymch;
	}

	public BigDecimal getPaymeng() {
		return paymeng;
	}

	public void setPaymeng(BigDecimal paymeng) {
		this.paymeng = paymeng;
	}

	public BigDecimal getPayshare() {
		return payshare;
	}

	public void setPayshare(BigDecimal payshare) {
		this.payshare = payshare;
	}

	public BigDecimal getPayplat() {
		return payplat;
	}

	public void setPayplat(BigDecimal payplat) {
		this.payplat = payplat;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getFangshua() {
		return fangshua;
	}

	public void setFangshua(Integer fangshua) {
		this.fangshua = fangshua;
	}

	@Override
	protected Serializable pkVal() {
		return this.sid;
	}

	@Override
	public String toString() {
		return "Mdpay{" +
			", mpid=" + mpid +
			", sid=" + sid +
			", leagueid=" + leagueid +
			", paymch=" + paymch +
			", paymeng=" + paymeng +
			", payshare=" + payshare +
			", payplat=" + payplat +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
